﻿ $(document).ready(function(){
  $('div.DivViewPM').hide();
       $("#Button1").click(function () {
      $("div#statsMainContainer").slideToggle("slow")
    });
     $("a.ViewSmileys").click(function () {
      $("div#SmileysContent").slideToggle("slow")
    });
    load();
    addListSmile();
  });   
  //open div for read message
   function openDivPM(){
      $('div.DivViewPM').show("slow");    
  }
  //close div for read message
   function closeDivPM(){
      $('div.DivViewPM').hide('fast');

  }
   //hide div for read message
   function HideDivPM(){
      $('div.DivViewPM').hide();

  }
  //after asyncr. call use the function addSmile 
  function EndRequestHandler(sender, args) {
   if (args.get_error() == undefined){
       Addsmile();
       }
}
function load() {
   Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}